-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
self-checkout: make barcode always uppercase #646
Conversation
1314087
to
324e0e7
Compare
onChange={(e) => this.setState({ manualBarcode: e.target.value })} | ||
value={manualBarcode} | ||
onChange={(e) => | ||
this.setState({ manualBarcode: e.target.value?.toUpperCase() }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatic uppercase on typing
/> | ||
<Button | ||
onClick={() => onChange(manualBarcode)} | ||
onClick={() => manualBarcode && onBarcodeInput(manualBarcode)} | ||
disabled={!manualBarcode} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable the btn if no barcode inserted
const response = await itemApi.list(itemApi.query().withBarcode(term).qs()); | ||
const upperCasedTerm = term.toUpperCase(); | ||
const response = await itemApi.list( | ||
itemApi.query().withBarcode(upperCasedTerm).qs() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not be needed, but just in case....
324e0e7
to
0e3d9f8
Compare
9426505
to
014ef04
Compare
0e3d9f8
to
bb7dec0
Compare
No description provided.